const path = require('path')

module.exports = {
	mode: 'production', // 'development', treeShaking仅当mode为production才有效（如果你没有使用 mode 设置，记得手动添加 ModuleConcatenationPlugin。）
	entry: './src/entrys/treeShaking.js',
	output: {
		filename: 'bundle.js',
		path: path.resolve(__dirname, '../dists/treeShaking')
	},
	// treeShaking配置
	optimization: {
		usedExports: true
	}
}